<div class="main">
    <div class="mtitle">计划进度</div>
    <div class="plan">
        <div class="item">
            <div class="icon-information"></div>
            <div>{{$Cache_Calendar_type.total||'0'}}</div>
        </div>
        <div class="item">
            <div class="icon-roundcheck"></div>
            <div>{{$Cache_Calendar_type.done||'0'}}</div>
        </div>
        <div class="item">
            <div class="icon-fenxiang"></div>
            <div>{{$Cache_Calendar_type.percent||'0'}}</div>
        </div>
    </div>
    <div class="mtitle">添加计划</div>
    <div event-click="{{'$Event.add_new_plan'}}" class="add icon-{{$Cache_isAdd_plan&&'fold'||'add'}}"></div>
    <div class="addbox {{$Cache_isAdd_plan&&'focus'}}">
        <input type="text" placeholder="填写计划" name="title" bind-input="{{'$Cache_plan_input'}}" style="margin-bottom:5px!important" />
        <div id="datetimepicker" class="input-append date">
            <input type="text" name="start" placeholder="请选择开始日期" disabled="true"></input>
            <span class="add-on">
                <i data-time-icon="icon-time" data-date-icon="icon-menu"></i>
            </span>
        </div>
        <div id="end" class="input-append date">
            <input type="text" name="end" placeholder="请选择结束日期(可选)" disabled="true"></input>
            <span class="add-on">
                <i data-time-icon="icon-time" data-date-icon="icon-menu"></i>
            </span>
        </div>
        <input type="text" placeholder="填写网址(可选)" name="url" bind-input="{{'$Cache_plan_website_url'}}" style="margin-bottom:5px!important" />
        <br/>
        <button name="createevent" event-click="{{'$Event.submit_plan'}}">提交</button>
    </div>

    <div class="mtitle">我的计划</div>
    <div class="eventbox">
        {{#if $Cache_Calendar_event.length}} {{#each $Cache_Calendar_event}}
        <div class="item {{color!=0&&'focus'}}">
            <div class="date">{{start+" - "+end}}</div>
            <div class="text">
                {{#if url}}
                <a href="{{url}}">{{title}}</a>
                {{#else}}
                <span>{{title}}</span>
                {{/if}}
            </div>
            <div class="method">
                <div class="icon-{{color==0&&'queding'||'shuaxin1'}}" event-click="{{'$Top.$Event.change_plan'}}"></div>
                <div class="icon-delete2" event-click="{{'$Top.$Event.delete_plan'}}"></div>
            </div>
        </div>
        {{/each}} {{#else}}
        <p>你暂时还没有制定任何计划，先去添加计划吧</p>
        {{/if}}
    </div>
</div>
